package de.gwtprime.shared;

public class TradingPositionShort extends TradingPosition {

	/**
	 * Short-Position -> Falling stocks
	 */
	private static final long serialVersionUID = 3125842424613008179L;
	
	@Override
	public double getProfit(){
		return getOpenValue()-getCloseValue();
	}
	
	@Override
	public String getType(){
		return "Short";
	}

	@Override
	public TradingPositionType getTradingType() {
		return TradingPositionType.SHORT;
	}
}
